const express=require('express');
const myRouter=require('./router/1');
const server=express();


server.use(express.static(__dirname+'/public'));
server.use(express.json());
server.use(express.urlencoded({extended:true}));

server.use(myRouter)

server.listen(8080,function(){
    console.log('项目启动了')
});